package com.byedu.mapper.course;

import java.util.List;

import com.byedu.domain.course.LibraryDO;
import com.byedu.domain.focus.BResultDO;
import org.springframework.stereotype.Repository;

/**
 * Created by chenxigui on 2017/4/25.
 */
@Repository
public interface LibraryMapper {
    /**
     * @description 获取专题列表
     * @author chenxigui
     * @date 2017-04-26
     * @param courseId
     * @return
     */
     List<LibraryDO> listLibrariesByCourseId(Integer courseId);

     List<LibraryDO> listAllLibraries();

    LibraryDO getLibraryDOById(Integer libraryId);

    LibraryDO getLibraryDOByName(String name);

    int saveLibraryDO(LibraryDO libraryDO);

    int del(int pid);

    List<LibraryDO> listLibrariesByCourseIdList(List<Integer> courseIdList);

    List<BResultDO> getCourseCountById();
    List<BResultDO> getCourseCountByUserId();
    List<BResultDO> getAllCourseCount();

    void updateQuestionNum(LibraryDO libraryDO);
}
